package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 产品分类表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "product_type")
public class ProductType implements Serializable {
    public static final String COL_PRODUCT_TYPE_NO = "product_type_no";
    public static final String COL_PRODUCT_TYPE_NAME = "product_type_name";
    public static final String COL_PID = "pid";
    /**
     * 产品分类编号
     */
    @TableId(value = "product_type_no", type = IdType.INPUT)
    private Integer productTypeNo;

    /**
     * 产品分类名称
     */
    @TableField(value = "product_type_name")
    private String productTypeName;

    /**
     * 父级
     */
    @TableField(value = "pid")
    private Integer pid;

    private static final long serialVersionUID = 1L;
}